//
//  SunnetAdService.h
//  SunnetAdvertisement
//
//  Created by doduong on 3/4/13.
//  Copyright (c) 2013 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <CoreTelephony/CTTelephonyNetworkInfo.h>
#import <CoreTelephony/CTCarrier.h>
#import <UIKit/UIKit.h>
#import "ReachabilityAmobi.h"

#define PROP_RUN_B4 @"runB4amobi"
#define FIRSTRUN_FILE_NAME @"frdtamobi"
#define FIRSTRUN_FILE_TYPE @"keyamobi"
#define PROP_CLIENT_ID @"clientidamobi"

#define PRODUCT_PUBLISHER_ID_KEY @"PublisherId"
#define PRODUCT_CHANNEL_ID_KEY @"ChannelId"
#define PRODUCT_PARTNER_NAME_KEY @"PartnerName"
#define PRODUCT_XML_ID_KEY @"XmlId"
#define PRODUCT_PAYMENT_CODE_LV1_KEY @"PaymentCodeLv1"
#define PRODUCT_PAYMENT_CODE_LV2_KEY @"PaymentCodeLv2"
#define PRODUCT_DEVICE_TYPE_KEY @"DeviceType"
#define PRODUCT_AD_URL @"AdvertisementURL"
#define PRODUCT_AD_ID @"AdvertisementID"
#define PRODUCT_URL_CLIENT_ID @"URLClientID"
#define PRODUCT_TIME_RELOAD @"TimeReload"

#define SA_PARAM1_DEVICE_TYPE @"device_type"
#define SA_PARAM2_DEVICE_MODEL @"device_model"
#define SA_PARAM3_DEVICE_OS_VERSION @"os_version"
#define SA_PARAM4_NICK_QPLAY @"nick_qplay"
#define SA_PARAM5_NICK_TYPE @"nick_type"
#define SA_PARAM6_SMS_CODE1 @"sms_code"
#define SA_PARAM7_SMS_CODE2 @"sms_code2"
#define SA_PARAM8_PRODUCT_ID @"product_id"
#define SA_PARAM9_CHANNEL_ID @"channel_id"
#define SA_PARAM10_PARTNER_NAME @"partner_name"
#define SA_PARAM11_WIDGET_SIZE @"widget_size"
#define SA_PARAM12_WIDGET_TYPE @"widget_type"
#define SA_PARAM13_SCREEN_SIZE @"screen_size"
#define SA_PARAM14_LOCATION @"location"
#define SA_PARAM15_SESSION_ID @"session_id"
#define SA_PARAM16_PUBLISHER_ID @"publisher_id"
#define SA_PARAM17_CATEGOTY @"category"
#define SA_PARAM18_AD_ID @"widget_code"
#define SA_PARAM19_UUID @"uuid"
#define SA_PARAM20_TYPE_NETWORK @"type_network"
#define SA_PARAM21_NET @"net"
#define SA_PARAM22_CLIENT_ID @"client_id"

@interface SunnetAdService : NSObject
+(NSString*) getClientID;
+(void) SetValue:(NSString *)value ForParameter:(NSString *)parameter;
+(void) PrepareRequest:(NSString*)size;
//+(NSString *) GetHtmlString __deprecated;
+(NSString *) GetURLString;
//+(NSString *) GetTargetLink;
+(NSString *) GetStringForKey:(NSString *)key;
+(NSString*) CheckWap;
+(NSString*) GetNet;
@end
